<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .div1{
            width: 400px;
            height: 80px;
            border: 1px solid  gold;
            margin: 10px auto;
        }
        .div2{
            width: 60px;
            height: 60px;
            float: left;
            margin: 10px;
            background-color: #90ee90;
        }
        .div3{
            width: 60px;
            height: 60px;
            float: right;
            margin: 10px;
            background-color: pink;
        }
    </style>
</head>
<body>
    <div class="div1">
        <div class="div2"></div>
        <div class="div3"></div>
    </div>
</body>
</html>